package com.lingkang.ngfile.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author linke
 * @date 2020-02-08 下午 15:17
 * @description
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private HttpServletRequest request;

    //----控制页面 start------------------------------------------------------
    @GetMapping("index")
    public String index() {
        return "user/index";
    }

    @GetMapping("welcome")
    public String welcome(){
        return "user/welcome";
    }

    @GetMapping("publicResource")
    public String publicResource(){
        return "user/public-resource";
    }

    @GetMapping("privateResource")
    public String privateResource(){
        return "user/private-resource";
    }

    //------控制页面  end ----------------------------------------------------
}
